/**
 *
 *
 *
 *
 *
 */

package org.sxp.modules.oss.cloud;


import lombok.Data;
import org.hibernate.validator.constraints.Range;
import org.hibernate.validator.constraints.URL;
import org.sxp.common.validator.group.LocalGroup;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 云存储配置信息
 *
 *
 */
@Data
public class CloudStorageConfig implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 类型 1：七牛  2：阿里云  3：腾讯云  4：本地
     */
    @Range(min=1, max=4, message = "类型错误")
    private Integer type;

    private String qcloudPrefix;
    @NotBlank(message="服务器存储路径不能为空", groups = LocalGroup.class)
    private String filePath;

}
